<div class="admin">
<div class="tab panel dux-box admin-panel">
    <div class="panel-head"><strong>订单详情</strong></div>
    <form action="" method="post" name="myform" id="myform">
    <input type="hidden" value="{$order['order_id']}" name="order_id">
    <table class="table tb-type2 order">
        <tbody>
            <tr>
                <td colspan="5"><ul>
                        <li><strong>订单号:</strong>{$order['order_sn']} ( 微信/支付宝对帐号 ： {$order['pay_sn']} )</li>
                        <li><strong>订单状态:</strong>
                            <strong>
                                <switch name="order['order_state']">
                                    <case value="0">已取消</case>
                                    <case value="10">未付款</case>
                                    <case value="20">已付款(未发货)</case>
                                    <case value="30">已发货(待收货)</case>
                                    <case value="40">已收货</case>
                                    <default />未知参数
                                </switch>
                            </strong>
                        </li>
                        <li><strong>订单总额:</strong><span class="red_common">￥{$order['order_amount']} </span></li>
                        <li><strong>运费:</strong>￥{$order['shipping_fee']}</li>
                    </ul></td>
            </tr>
            <tr>
                <td colspan="5"><ul>
                        <li><strong>买家：</strong>{$order['user_name']}</li>
                        <li><strong>店铺：</strong>{$order['store_name']}</li>
                        <li><strong>支付方式：</strong>{$order['payment_code']}</li>
                        <li><strong>下单时间：</strong>{$order['add_time']|date='Y-m-d H:i:s',###}</li>
                        <li><strong>支付时间：</strong>
                        <if condition="$order.payment_time eq 0">
                            未支付
                            <else />
                            {$order['payment_time']|date='Y-m-d H:i:s',###}
                        </if>
                        </li>
                        <li><strong>备注信息：</strong>{$order['OrderCommon']['order_message']}</li>
                    </ul></td>
            </tr>
            <tr>
                <th colspan="5">收货人信息</th>
            </tr>
            <tr>
                <td colspan="5"><ul>
                        <li><strong>收货人姓名：</strong>{$reciver_info['true_name']}</li>
                        <li><strong>电话号码：</strong>{$reciver_info['mob_phone']}</li>
                        <li><strong>详细地址：</strong>
                            {$reciver_info['area_info']}{$reciver_info['address']}
                        </li>
                    </ul></td>
            </tr>
            
            <tr>
                <th colspan="5">物流信息</th>
            </tr>
            <tr>
                <td colspan="5">
                    <ul>
                        <li><strong>物流公司：</strong>{$order['express_id']}</li>
                        <li><strong>快递单号：</strong><a href="http://www.kuaidi100.com/chaxun?com={$order.express_id}&nu={$order['shipping_code']}" target="_blank">{$order['shipping_code']}</a></li>
                    </ul>
                </td>
            </tr>
            
            <tr>
                <th colspan="5">商品信息</th>
            </tr>
            <tr>
                <td colspan="5"><table class="table tb-type2 goods ">
                        <tbody>
                            <tr >
                                <th></th>
                                <th>商品信息</th>
                                <th class="align-center">单价</th>
                                <th class="align-center">商品总价</th>
                                <th class="align-center">数量</th>
                                <th class="align-center">所属店铺</th>
                                <th class="align-center">佣金比例</th>
                                <th class="align-center">收取佣金</th>
                            </tr>
                        <foreach item='v' name="orderGoods">
                            <tr style="background: rgb(251, 251, 251);">
                                <td class="w60 picture"><div class="size-56x56"><span class="thumb size-56x56"><i></i><a href="{:HOME_URL}/Goods/{$v['goods_id']}" target="_blank"><img alt="" src="{$v['goods_image']}!100x100" height="56" width="56"> </a></span></div></td>
                                <td class="w50pre"><p><a href="{:HOME_URL}/Goods/{$v['goods_id']}" target="_blank">{$v['goods_title']}</a></p><p>规格：{$v['goods_attri_info']}</p></td>
                                <td class="w96 align-center"><span class="red_common">￥{$v['goods_price']}</span></td>
                                <td class="w96 align-center"><span class="red_common">￥{$v['goods_pay_price']}</span></td>
                                <td class="w96 align-center">{$v['goods_num']}</td>
                                <td class="w96 align-center">{$v['goods_id']|getGoodStore}</td>
                                <td class="w96 align-center">0%</td>
                                <td class="w96 align-center">0.00</td>
                            </tr>
                        </foreach>
                        </tbody>
                    </table></td>
            </tr>
            <!-- S 促销信息 -->
            <tr>
                <th colspan="5">订单实际支付情况：</th>
            </tr>
            <tr>
                <td colspan="5">
                    <ul>
                        <li><strong>运费：</strong>{$order['shipping_fee']|price}</li>
                        <li><strong>店铺优惠：</strong>{$order['discount_fee']|price}</li>
                        <li><strong>平台优惠：</strong>{$order['pay_sn']|Snapup|price}元 {$order['pay_sn']|SnapupList}</li>
                        <li><strong>商品总价：</strong>{$order['goods_amount']}</li>
                        <li><strong>已付款：</strong>{$order['order_amount']}</li>
                    </ul>
                </td>
            </tr>
            <!-- E 促销信息 -->
        </tbody>
        <tfoot class="panel-foot">
            <tr class="tfoot">
                <td>
                    <a href="JavaScript:void(0);" class="button bg-main" onclick="history.go(-1)"><span>返回</span></a>
                </td>
                <td> 快递公司：<select name="express_id" class="input input-small">
                                    <option value="0">请选择</option>
                                <foreach name="express" item="v">
                                    <if condition="($v['e_code'] eq $order['express_id'])">
                                        <option value="{$v['e_code']}" selected>{$v['e_name']}</option>
                                    <else/>
                                        <option value="{$v['e_code']}" >{$v['e_name']}</option>
                                    </if>
                                </foreach>
                        </select></td>
                <td>快递单号：<input type="text" name="shipping_code" class="input input-small" value="{$order['shipping_code']}"></td>
                <td>订单状态：<select name="order_state" class="input input-small">
                                    <option value="10">待付款</option>
                                    <option value="20">已付款</option>
                                    <option value="30" selected="selected">发货</option>
                                    <option value="40">已收货</option>
                                    <option value="0">已取消</option>
                            </select></td>
                            <td><input type="submit" class="button bg-main" id="tijiao"/></td>
            </tr>
        </tfoot>
    </table>
    </form>
</div>
<script type="text/javascript">
        $('#myform').layer({});
</script>